package org.jeecg.modules.educational.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 *
 * @author liujiamiao
 * @since 2020-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EducationMessage对象", description="")
@TableName(value = "sci_education")
public class EducationMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank
    @ApiModelProperty(value = "毕业学校")
    private String school;

    @NotBlank
    @ApiModelProperty(value = "专业")
    private String professional;

    @NotBlank
    @ApiModelProperty(value = "证明人")
    private String certifier;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startDate;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endDate;

    @NotBlank
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$",message = "{internship.phone}")
    @ApiModelProperty(value = "证明人手机号")
    private String certifierPhone;

    @NotNull
    @ApiModelProperty(value = "学习形式")
    private String learningForm;

    @NotNull
    @ApiModelProperty(value = "学习结果")
    private String learningOutcome;

    @ApiModelProperty(value = "学历证书编号")
    private String educationNo;

    @NotNull
    @ApiModelProperty(value = "学历")
    private Integer education;

    @NotNull
    @ApiModelProperty(value = "学位")
    private String degree;

    @ApiModelProperty(value = "学位证书编号")
    private String degreeNo;

    @ApiModelProperty(value = "是否最高学历")
    private Boolean isMaxEducation;

    @ApiModelProperty(value = "是否最高学位")
    private Boolean isMaxDegree;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic // 逻辑删除
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT) //插入数据自动封装日期
    private Date createDate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE) //更新数据自动封装日期
    private Date updateDate;

    @ApiModelProperty(value = "基本信息Id")
    private int basicId;

}
